<?php
/* SVN FILE: $Id$ */
/* MgColonia Test cases generated on: 2009-06-17 23:06:14 : 1245299714*/
App::import('Model', 'MgColonia');

class MgColoniaTestCase extends CakeTestCase {
	var $MgColonia = null;
	var $fixtures = array('app.mg_colonia', 'app.mg_zona');

	function startTest() {
		$this->MgColonia =& ClassRegistry::init('MgColonia');
	}

	function testMgColoniaInstance() {
		$this->assertTrue(is_a($this->MgColonia, 'MgColonia'));
	}

	function testMgColoniaFind() {
		$this->MgColonia->recursive = -1;
		$results = $this->MgColonia->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgColonia' => array(
			'id'  => 1,
			'mg_zona_id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'precio'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'created'  => '2009-06-17',
			'modified'  => '2009-06-17',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>